GetIdentityComparer Generic Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets an IEqualityComparer<T> instance that can be used to compare objects of type T for object identity only. Two objects compare equal only if they are references to the same object.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public static IEqualityComparer<T> GetIdentityComparer<T>() where T : class
Visual Basic (Declaration)
Public Shared Function GetIdentityComparer(Of T As Class) As IEqualityComparer(Of T)
Visual C++
public:
generic<typename T>
where T : ref class
static IEqualityComparer<T>^ GetIdentityComparer ()

Return Value

An IEqualityComparer<T> instance for identity comparison.

Type Parameters

T

See Also